// 03myCenter/02sectorization/11userManual/userManual.js
var co = require('../../../resource/js/common.js')
var app = getApp()
var _this

Page({
    /*页面的初始数据 */
    data: {
        // 字颜色
        color: 'color:#BFBFBF;font-weight:bold;',
        // 预定的订单数据
        bookOrder: []
    },

    /*生命周期函数--监听页面加载 */
    onLoad: function (options) {
        _this = this
        this.getBookOrder()
    },
    // 获取的预定数据
    getBookOrder(){
        var param = {
            User_ID: app.Data.userInfo.User_ID
        }
        co.getMealApi('seat/Smg/myBookSeats', param, function(res){
            console.log("【获取预定数据】===",res.data)
            if(res.code == 0){
                _this.setData({
                    bookOrder: res.data
                })
            }
        })
    }

})